package com.it.annotation;

import java.lang.annotation.*;

/**
 * @author TBH
 * @date 2025-05-02 00:15:46
 * @desc 清除缓存
 */
@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface ClearCache {
    CacheType[] cacheNames() default {CacheType.ROLES, CacheType.PERMISSIONS}; //缓存名称

    String[] keys() default {};

    boolean clearKeys() default false;

    enum CacheType {
        ROLES, PERMISSIONS
    }
}